package com.mindata.blockchain.core.event;

import com.mindata.blockchain.block.Instruction;
import org.springframework.context.ApplicationEvent;

import java.util.List;

/**
 * 新增指令事件来源于其他节点
 * <p>
 * User: jasperxgwang
 * Date: 2018-7-30 9:38
 */
public class AddInstructionEvent extends ApplicationEvent {

    /**
     * Create a new ApplicationEvent.
     *
     * @param instructions
     */
    public AddInstructionEvent(List<Instruction> instructions) {
        super(instructions);
    }


    @Override
    public List<Instruction> getSource() {
        return (List<Instruction>) source;
    }
}
